import {ref,onMounted,computed} from "vue";
export default function (){
    let sum = ref<number>(0)
    function addSum ():void{
        sum.value += 1
    }
    onMounted(()=>{
        addSum()
    })
   let computedSum = computed(()=>{
        return sum.value * 10
    })
    return {sum,addSum,computedSum}
}